package com.sky.module.system.OperLog.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sky.module.system.OperLog.domain.entity.OperLog;
import com.sky.module.system.OperLog.domain.form.OperLogFormQuery;
import com.sky.module.system.OperLog.service.OperLogService;
import com.sky.utils.Result;
import jdk.nashorn.internal.objects.annotations.Getter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/***
 * @description 操作日志查询
 * @param null
 * @return
 * @date 2023/3/8 14:49
 *
 */
@RestController
@RequestMapping("/api/operlog")
public class OperLogController {

    @Autowired
    private OperLogService operLogService;

    @PostMapping("query")
    public Result queryPage(@RequestBody OperLogFormQuery operLogFormQuery) {
        Page<OperLog> page = operLogService.queryPage(operLogFormQuery);
        return Result.ok(page);
    }
}
